package com.xiaoshuidi.cloud.module.report.dal.DO.report;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

@TableName(value = "report_receivable", autoResultMap = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ReceivableDO implements Serializable {

    /**
     * 编号，数据库自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 编号，数据库自增
     */
    private Boolean isConcentrated;

    /**
     *公寓id
     */
    private Long apartmentId;
    /**
     *房间id
     */
    private Long roomId;
    /**
     *小区
     */
    private String area;
    /**
     * 房源名称
     */
    private String houseResource;
    /**
     * 合同id
     */
    private Long contractId;
    /**
     * 合同编号
     */
    private String contractNo;

    /**
     * 合同开始日期
     */
    private LocalDate contractStartDate;
    /**
     * 合同结束日期
     */
    private LocalDate contractEndDate;
    /**
     * 日租金
     */
    private BigDecimal dayRent;

    /**
     * 账单周期
     */
    private String orderPeriod;
    /**
     * 统计日期 截止到月
     */
    private String statisticsMonth;
    /**
     * 承租人
     */
    private String customerName;
    /**
     * 费项名称
     */
    private String feeName;
    /**
     * 期初余额
     */
    private BigDecimal openingBalance;
    /**
     * 本月应收
     */
    private BigDecimal curReceivable;
    /**
     * 本月已收
     */
    private BigDecimal curReceived;
    /**
     * 本月未收
     */
    private BigDecimal curNotReceived;
    /**
     * 累计应收
     */
    private BigDecimal accReceivable;
    /**
     * 累计已收
     */
    private BigDecimal accReceived;
    /**
     * 期末余额
     */
    private BigDecimal endingBalance;
    /**
     * 权责应收
     */
    private BigDecimal accPowerIn;
    /**
     * 累计未收
     */
    private BigDecimal accNotReceived;
    /**
     * 本月预收
     */
    private BigDecimal curAdvance;
    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 部门id
     */
    private Long deptId;
}
